Skip to content

fix(upstream): look for OpenShell images on Quay, then on GHCR - #153

Open
Gkrumbach07 wants to merge 1 commit into
ai-openshell:mainfrom
Gkrumbach07:fix/upstream-pins-quay
Open

Gkrumbach07 wants to merge 1 commit into
ai-openshell:mainfrom
Gkrumbach07:fix/upstream-pins-quay

Conversation

@Gkrumbach07

Copy link
Copy Markdown
Contributor

Closes #152

Problem

From v0.1.10 on, OpenShell publishes its images to quay.io/ai-openshell/{gateway,supervisor,sandbox}. ghcr.io/nvidia/openshell is frozen: it has v0.1.9 and older, plus v0.1.10-pre.1 to pre.3. Follow upstream only checked GHCR. So every daily run found v0.1.10, reported "Not yet: upstream has tagged v0.1.10 but has not published its gateway image yet", and still finished green. main has stayed on 0.1.9 since v0.1.10 shipped on 2026-11-24.

The missing bump-bot secrets don't explain this. Even with the secrets in place, no bump would have been opened.

Change

  • upstream.py: REGISTRY and the two repository constants are replaced by IMAGE_HOMES = ("quay.io/ai-openshell", "ghcr.io/nvidia/openshell"), newest first. image_digest now takes the whole repository name.
  • plan.py: _images looks for the release in each home in turn and pins both images from the first home that has the gateway. A release is never pinned half from one home and half from the other. If a gateway has no supervisor, the plan waits and names the home. If Quay is down, the run stops (UpstreamError) and does not fall back to GHCR.
  • e2e-stack.sh: when OPENSHELL_VERSION is set, the home is chosen by version: GHCR for ≤ 0.1.9 and 0.1.10-pre.1 to pre.3, Quay otherwise. The latest fallback, and the default in docker-compose.e2e.yml, are now on Quay. CI never uses these defaults, because it passes digests.
  • Comments (pins.py, gateway-pins.json, ci.yml): a dev gateway now pulls quay.io/ai-openshell/sandbox:dev. The pins themselves don't change; 0.1.9 stays on GHCR until the bump.
  • The openshell-community/sandboxes/* images are a separate project and are unaffected.

Verified

  • python3 -m unittest in deploy/ci/upstream: 306 pass. New tests cover a Quay-only release, Quay winning when both homes have a release, no half-and-half pins, and a Quay outage.
  • node --test scripts/…: 89 pass. gateway-range.mjs --check passes, and so does format-pins.
  • A real dry run of follow.py plan against the network now gives:
    Target: OpenShell 0.1.10, a stable release
    gateway    quay.io/ai-openshell/gateway:0.1.10@sha256:9ee94507…
    supervisor quay.io/ai-openshell/supervisor:0.1.10@sha256:3bfb2f5a…
    Go SDK     github.com/ai-openshell/sdk-go v0.1.10
    ready=true bump=true
    

Not in this PR

  • UPSTREAM_REPO still points at github.com/NVIDIA/OpenShell, which redirects to the moved repository, and the tags read through it are correct. Renaming it touches release links in every report, so it's left for a separate change.
  • The bump to 0.1.10 itself comes after this PR. Until the bump-bot secrets exist, it will be made the way fix: move to OpenShell 0.1.9 #144 was, with follow.py plan/bump.

🤖 Generated with Claude Code

OpenShell publishes releases to quay.io/ai-openshell from v0.1.10 on.
ghcr.io/nvidia/openshell is frozen at v0.1.9 and v0.1.10-pre.1 to pre.3,
so Follow upstream found v0.1.10 every day and reported "has not
published its gateway image yet", and main stayed on 0.1.9.

The plan now looks a release up in each image home, Quay first, and
pins both images from the first home that has the gateway. Releases
from before the move still resolve to GHCR. An outage on Quay stops the
run instead of falling back. The e2e stack picks the home by version
for OPENSHELL_VERSION, and the comments say where a dev gateway pulls
its sandbox image now.

Closes ai-openshell#152

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Gage Krumbach <gkrumbac@redhat.com>
@Gkrumbach07
Gkrumbach07 requested review from a team as code owners November 30, 2026 19:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upstream pins never see OpenShell releases published to Quay

2 participants